package com.example.yqand4v1_1.dao;

import com.example.yqand4v1_1.dao.entity.NewsDiscuss;
import com.example.yqand4v1_1.dto.AddNewsDiscussDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NewsDiscussMapper {

    void add(@Param("data") AddNewsDiscussDTO data, @Param("userId") int userId, @Param("username") String username,@Param("addTime") String addTime);

    List<NewsDiscuss> getByNewsId(@Param("newsId") int newsId);
}